using OpenQA.Selenium; using OpenQA.Selenium.Chrome; ... var chromeOptions = new ChromeOptions(); chromeOptions.AddArguments("headless"); using (var browser = new ChromeDriver(chromeOptions)) { // add your code here }